package com.xbn.xbnmall.search.feign;

import com.xbn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author XBN
 * @date 2020/8/9 9:41
 * @email 78742541@qq.com
 */
@FeignClient("xbnmall-product")
public interface ProductFeignService {
    @GetMapping("/product/attr/info/{attrId}")
    public R getAttrInfo(@PathVariable("attrId") Long attrId);
    @GetMapping("/product/brand/infos")
    public R brandInfos(@RequestParam("brandIds") List<Long> brandIds);
}
